import { defineFakeRoute } from "vite-plugin-fake-server/client";
// 模拟刷新token接口
// export default
 defineFakeRoute([
    {
        url: "/business/project/v2/project",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": null,
                "result": {
                    "projectId": 1,
                    "projectName": "项目名称",
                    "city": ["四川省", "成都市", "武侯区"],
                    "remark": "项目说明",
                    "contactName": "",
                    "contactPhone": "",
                    "buildDate": "",
                    "address": "",
                    "lat": "40.002143",
                    "lng": "118.702771",
                    "center":[118.702771,40.002143],
                    "area": [[[118.701076,40.002143],[118.707728,40.001568],[118.703865,40.006827],[118.692278,39.998905],[118.702235,39.997491],[118.710517,40.001962]],[[118.686227,40.009174],[118.697342,40.008845],[118.689102,40.004374],[118.691634,40.012066],[118.696527,40.003355]],[[118.699622,40.009612],[118.703269,40.008297],[118.703355,40.010072],[118.701853,40.01027]]]
                }
            }
        }
    }, {
        url: "/business/project/v2/project",
        method: "put",
        response: () => {
            return {
                "code": 200,
                "msg": "修改成功",
                "result": null
            }
        }
    }, {
        url: "/business/project/v2/project",
        method: "put",
        response: () => {
            return {
                "code": 200,
                "msg": null,
                "result": [{
                    "projectId": 1,
                    "projectName": "xxx"
                }]
            }
        }
    }
]);